import Vue from 'vue'
import Router from 'vue-router'

import MyHome from "@/components/MyHome.vue";
import MyLogin from "@/components/MyLogin.vue";
import WelcomeIndex from "@/components/WelcomeIndex.vue";
import MyDoc from "@/components/MyDoc.vue";
import MyPerson from "@/components/PersonCenter.vue";
import PlugMarket from "@/components/PlugMarket.vue";
Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'login',
            component: MyLogin
        },
        {
            path: '/welcome',
            name: 'welcome',
            component: WelcomeIndex
        },
        {
            path: '/home',
            name: 'home',
            component: MyHome
        },
        {
            path: '/doc',
            name: 'doc',
            component: MyDoc
        },
        {
            path: '/person',
            name: 'person',
            component: MyPerson
        },
        {
            path: '/market',
            name: 'market',
            component: PlugMarket
        }
    ]
})